import axios from 'axios'
import vue from 'vue'

axios.defaults.baseURL='http://aicreation.lipux.cn/'
vue.prototype.axios=axios

export const postRequest=(url,data)=>{
	return new Promise((resolve,reject)=>{
		axios.post(url,data).then(res=>{
			resolve(res.data)
		}).catch(err=>{
			reject(err)
		})
	})
}

